import React, { Component } from 'react';
import 'whatwg-fetch';
// import Promise from 'promise-polyfill';
import { DatePicker } from 'antd';
// import 'antd/dist/antd.css';

class List extends Component {
  constructor (props) {
    super(props)
    this.state = {
      list: ''
    }
  }
  fetchTableData = () => {
    fetch('https://www.easy-mock.com/mock/5a62bc9868c0d85c378988bf/yoyoping/userlist')
        .then((res) => { console.log(res)})
        .then((res) => { console.log(res)})
        .catch((e) => { console.log('失败')});
} 
  componentDidMount () {
    this.fetchTableData()
  }
  render() {
    return (
      <ul>
        <li>列表一</li>
        <li>列表一</li>
        <li><DatePicker /></li>
      </ul>
    );
  }
}

export default List;